-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: emit status to stdout #420
fix: emit status to stdout #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utAck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utAck. Are there any other areas where we should be using OutOrStdout
instead of Println
?
If I may (sounds like the same issue Osmosis had), you should probably set the default output in your app instead: https://github.com/cosmos/cosmos-sdk/blob/v0.50.10/simapp/simd/cmd/root.go#L52-L54
The SDK is using |
Thanks for the review @julienrbrt ! Good idea, will do that in celestia-app and close this PR. |
Closes #3823 Motivation celestiaorg/cosmos-sdk#420 (comment) ## Testing ```bash make build ./build/celestia-appd status | jq . ``` works
Closes #3823 Motivation celestiaorg/cosmos-sdk#420 (comment) ## Testing ```bash make build ./build/celestia-appd status | jq . ``` works (cherry picked from commit 615f1dc)
Closes #3823 Motivation celestiaorg/cosmos-sdk#420 (comment) ## Testing ```bash make build ./build/celestia-appd status | jq . ``` works <hr>This is an automatic backport of pull request #4071 done by [Mergify](https://mergify.com). Co-authored-by: Rootul P <[email protected]>
Part of celestiaorg/celestia-app#3823
Testing
After building a celestia-app binary that replaces cosmos-sdk with this, that status output goes to stdout so it can be piped to jq easily. In other words, this works: